package pl.edu.pb.wi.pwnography.model.form;

import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

import pl.edu.pb.wi.pwnography.modules.KMeansClustering;

public class ClusteringForm {
    private String resultColumnName;
    @Range(min = 1, message = "Wartość musi być większa lub równa 1.")
    private int kmeans;
    @NotNull(message = "Wartość nie może być pusta.")
    private KMeansClustering.STARTING_POINTS_INIT initType;
    private List<String> excludedColumns;

    public ClusteringForm() {
	excludedColumns = new ArrayList<String>();
    }

    public String getResultColumnName() {
	return resultColumnName;
    }

    public void setResultColumnName(String resultColumnName) {
	this.resultColumnName = resultColumnName;
    }

    public int getKmeans() {
	return kmeans;
    }

    public void setKmeans(int kmeans) {
	this.kmeans = kmeans;
    }

    public List<String> getExcludedColumns() {
	return excludedColumns;
    }

    public void setExcludedColumns(List<String> excludedColumns) {
	this.excludedColumns = excludedColumns;
    }

    public KMeansClustering.STARTING_POINTS_INIT getInitType() {
	return initType;
    }

    public void setInitType(KMeansClustering.STARTING_POINTS_INIT initType) {
	this.initType = initType;
    }

}
